
#ifndef _FYCSTING_H_
#define _FYCSTING_H_

#include <iostream>

class mystring
{
public:
    mystring(const char *str=NULL);     //构造器
    mystring(const mystring &other);    //拷贝构造
    mystring &operator = (const mystring &another);//赋值
    mystring operator+(const mystring  &other);//加法

    bool operator == (const mystring &other); //==运算符
    bool operator > (const mystring &other);  //大于运算符
    bool operator < (const mystring &other);  //小于
    char &operator[](int idx);
    void dis();
    virtual ~mystring();
private:
    char *_str;
};

#endif /*mystring.h*/

